package org.example;
import java.util.ArrayList;
import java.util.Scanner;


//TIP 要<b>运行</b>代码，请按 <shortcut actionId="Run"/> 或
// 点击装订区域中的 <icon src="AllIcons.Actions.Execute"/> 图标。
public class Main {
    public static void main(String[] args) {

        ArrayList<Student> students = new ArrayList<>();
        for (int a = 0; a < 1000; a++) {
            Scanner scanner = new Scanner(System.in);
            System.out.println("提示信息：1查询全部学生信息");
            System.out.println("提示信息：2添加生信息");
            System.out.println("提示信息：3修改学生信息");
            System.out.println("提示信息：4删除学生信息");
            System.out.println("提示信息：5退出");
            System.out.print("请输入一些内容: ");
            int num = scanner.nextInt();
            switch (num) {
                case 0:
                    operation.findStu(students);
                    break;
                case 1:
                    operation.addStudent(students);
                    break;
                case 2:
                    operation.searchStudent(students);
                    break;
                case 3:
                    operation.updateStu(students);
                    break;
                case 4:
                    operation.removeStu(students);
                    break;
                case 5:
                    break;
            }
        }
    }
}